#! /bin/bash

clear
. ./para

export LANG=zh_CN.gb18030
echo $LANG

CLASSPATH=
CLASSPATH=$CLASSPATH:${SERVER_BIN}
for jarfile in `ls -1 ${SERVER_LIB}/*.jar`
do
    CLASSPATH="$CLASSPATH:$jarfile"
done

cd ${SERVER_BIN}
echo "${SERVER_NAME} starting ..."
sleep 1
nohup java -Xms256m -Xmx512m -Dflag=${SERVER_NAME} -XX:PermSize=128m -XX:MaxPermSize=256m -Djava.security.policy="policy.txt" -Djava.rmi.server.codebase=file://${SERVER_BIN}/ -cp ${CLASSPATH} com.umpay.provdcs.Provdcs >${SERVER_LOG}/console.out &

cd ${SERVER_SCRIPT}
#sleep 1
tail -50f ${SERVER_LOG}/console.out
